﻿using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using WebCore.Dtos;

namespace WebCore.Repository
{
    public class WebCoreRepository<TEntity, TKey> : BaseRepository<TEntity, TKey>
    {
    }  
    public class BaseRepository<TEntity, TKey> : DapperRepository<TEntity, TKey>, IBaseRepository<TEntity, TKey>
    {
        public PagedResponseBase<TEntity> Query(PagedQueryCondition condition)
        {
            throw new NotImplementedException();
        }

        protected override IDbConnection GetDbConnection()
        {
            return new MySqlConnection(ConnectionString());
        }


    }
}
